import 'package:testlzhu/generated/json/base/json_convert_content.dart';
import 'package:testlzhu/bean/loginbean_entity.dart';

LoginbeanEntity $LoginbeanEntityFromJson(Map<String, dynamic> json) {
	final LoginbeanEntity loginbeanEntity = LoginbeanEntity();
	final LoginbeanUserinfo? userinfo = jsonConvert.convert<LoginbeanUserinfo>(json['userinfo']);
	if (userinfo != null) {
		loginbeanEntity.userinfo = userinfo;
	}
	return loginbeanEntity;
}

Map<String, dynamic> $LoginbeanEntityToJson(LoginbeanEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['userinfo'] = entity.userinfo?.toJson();
	return data;
}

LoginbeanUserinfo $LoginbeanUserinfoFromJson(Map<String, dynamic> json) {
	final LoginbeanUserinfo loginbeanUserinfo = LoginbeanUserinfo();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		loginbeanUserinfo.id = id;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		loginbeanUserinfo.mobile = mobile;
	}
	final String? nickname = jsonConvert.convert<String>(json['nickname']);
	if (nickname != null) {
		loginbeanUserinfo.nickname = nickname;
	}
	final int? sex = jsonConvert.convert<int>(json['sex']);
	if (sex != null) {
		loginbeanUserinfo.sex = sex;
	}
	final String? realname = jsonConvert.convert<String>(json['realname']);
	if (realname != null) {
		loginbeanUserinfo.realname = realname;
	}
	final String? avatar = jsonConvert.convert<String>(json['avatar']);
	if (avatar != null) {
		loginbeanUserinfo.avatar = avatar;
	}
	final int? parentid = jsonConvert.convert<int>(json['parentid']);
	if (parentid != null) {
		loginbeanUserinfo.parentid = parentid;
	}
	final int? grandparentid = jsonConvert.convert<int>(json['grandparentid']);
	if (grandparentid != null) {
		loginbeanUserinfo.grandparentid = grandparentid;
	}
	final String? regfrom = jsonConvert.convert<String>(json['regfrom']);
	if (regfrom != null) {
		loginbeanUserinfo.regfrom = regfrom;
	}
	final int? regfromactivity = jsonConvert.convert<int>(json['regfromactivity']);
	if (regfromactivity != null) {
		loginbeanUserinfo.regfromactivity = regfromactivity;
	}
	final int? regtime = jsonConvert.convert<int>(json['regtime']);
	if (regtime != null) {
		loginbeanUserinfo.regtime = regtime;
	}
	final int? groupid = jsonConvert.convert<int>(json['groupid']);
	if (groupid != null) {
		loginbeanUserinfo.groupid = groupid;
	}
	final int? islock = jsonConvert.convert<int>(json['islock']);
	if (islock != null) {
		loginbeanUserinfo.islock = islock;
	}
	final String? wxunionid = jsonConvert.convert<String>(json['wxunionid']);
	if (wxunionid != null) {
		loginbeanUserinfo.wxunionid = wxunionid;
	}
	final String? wxopenid = jsonConvert.convert<String>(json['wxopenid']);
	if (wxopenid != null) {
		loginbeanUserinfo.wxopenid = wxopenid;
	}
	final String? appopenid = jsonConvert.convert<String>(json['appopenid']);
	if (appopenid != null) {
		loginbeanUserinfo.appopenid = appopenid;
	}
	final String? miniopenid = jsonConvert.convert<String>(json['miniopenid']);
	if (miniopenid != null) {
		loginbeanUserinfo.miniopenid = miniopenid;
	}
	final String? aliuserid = jsonConvert.convert<String>(json['aliuserid']);
	if (aliuserid != null) {
		loginbeanUserinfo.aliuserid = aliuserid;
	}
	final int? identity = jsonConvert.convert<int>(json['identity']);
	if (identity != null) {
		loginbeanUserinfo.identity = identity;
	}
	final int? shopid = jsonConvert.convert<int>(json['shopid']);
	if (shopid != null) {
		loginbeanUserinfo.shopid = shopid;
	}
	final int? shopstatus = jsonConvert.convert<int>(json['shopstatus']);
	if (shopstatus != null) {
		loginbeanUserinfo.shopstatus = shopstatus;
	}
	final int? firmid = jsonConvert.convert<int>(json['firmid']);
	if (firmid != null) {
		loginbeanUserinfo.firmid = firmid;
	}
	final String? firmname = jsonConvert.convert<String>(json['firmname']);
	if (firmname != null) {
		loginbeanUserinfo.firmname = firmname;
	}
	final int? starcount = jsonConvert.convert<int>(json['starcount']);
	if (starcount != null) {
		loginbeanUserinfo.starcount = starcount;
	}
	final int? fancount = jsonConvert.convert<int>(json['fancount']);
	if (fancount != null) {
		loginbeanUserinfo.fancount = fancount;
	}
	final int? cityid = jsonConvert.convert<int>(json['cityid']);
	if (cityid != null) {
		loginbeanUserinfo.cityid = cityid;
	}
	final String? citytitle = jsonConvert.convert<String>(json['citytitle']);
	if (citytitle != null) {
		loginbeanUserinfo.citytitle = citytitle;
	}
	final int? viplevel = jsonConvert.convert<int>(json['viplevel']);
	if (viplevel != null) {
		loginbeanUserinfo.viplevel = viplevel;
	}
	final int? vipexpirytime = jsonConvert.convert<int>(json['vipexpirytime']);
	if (vipexpirytime != null) {
		loginbeanUserinfo.vipexpirytime = vipexpirytime;
	}
	final int? svipexpirytime = jsonConvert.convert<int>(json['svipexpirytime']);
	if (svipexpirytime != null) {
		loginbeanUserinfo.svipexpirytime = svipexpirytime;
	}
	final int? tvipexpirytime = jsonConvert.convert<int>(json['tvipexpirytime']);
	if (tvipexpirytime != null) {
		loginbeanUserinfo.tvipexpirytime = tvipexpirytime;
	}
	final int? vipopentype = jsonConvert.convert<int>(json['vipopentype']);
	if (vipopentype != null) {
		loginbeanUserinfo.vipopentype = vipopentype;
	}
	final String? creditscore = jsonConvert.convert<String>(json['creditscore']);
	if (creditscore != null) {
		loginbeanUserinfo.creditscore = creditscore;
	}
	final String? setting = jsonConvert.convert<String>(json['setting']);
	if (setting != null) {
		loginbeanUserinfo.setting = setting;
	}
	final int? vipdays = jsonConvert.convert<int>(json['vipdays']);
	if (vipdays != null) {
		loginbeanUserinfo.vipdays = vipdays;
	}
	final int? usertag = jsonConvert.convert<int>(json['usertag']);
	if (usertag != null) {
		loginbeanUserinfo.usertag = usertag;
	}
	final int? roleid = jsonConvert.convert<int>(json['roleid']);
	if (roleid != null) {
		loginbeanUserinfo.roleid = roleid;
	}
	final String? oaJoinCompanyId = jsonConvert.convert<String>(json['oa_join_company_id']);
	if (oaJoinCompanyId != null) {
		loginbeanUserinfo.oaJoinCompanyId = oaJoinCompanyId;
	}
	final String? oaAvatar = jsonConvert.convert<String>(json['oa_avatar']);
	if (oaAvatar != null) {
		loginbeanUserinfo.oaAvatar = oaAvatar;
	}
	final String? buyericon = jsonConvert.convert<String>(json['buyericon']);
	if (buyericon != null) {
		loginbeanUserinfo.buyericon = buyericon;
	}
	final String? sellericon = jsonConvert.convert<String>(json['sellericon']);
	if (sellericon != null) {
		loginbeanUserinfo.sellericon = sellericon;
	}
	final int? oaCompanyRole = jsonConvert.convert<int>(json['oa_company_role']);
	if (oaCompanyRole != null) {
		loginbeanUserinfo.oaCompanyRole = oaCompanyRole;
	}
	final int? isPaTest = jsonConvert.convert<int>(json['is_pa_test']);
	if (isPaTest != null) {
		loginbeanUserinfo.isPaTest = isPaTest;
	}
	final String? payPwd = jsonConvert.convert<String>(json['pay_pwd']);
	if (payPwd != null) {
		loginbeanUserinfo.payPwd = payPwd;
	}
	final String? payPwdSalt = jsonConvert.convert<String>(json['pay_pwd_salt']);
	if (payPwdSalt != null) {
		loginbeanUserinfo.payPwdSalt = payPwdSalt;
	}
	final String? token = jsonConvert.convert<String>(json['token']);
	if (token != null) {
		loginbeanUserinfo.token = token;
	}
	return loginbeanUserinfo;
}

Map<String, dynamic> $LoginbeanUserinfoToJson(LoginbeanUserinfo entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['mobile'] = entity.mobile;
	data['nickname'] = entity.nickname;
	data['sex'] = entity.sex;
	data['realname'] = entity.realname;
	data['avatar'] = entity.avatar;
	data['parentid'] = entity.parentid;
	data['grandparentid'] = entity.grandparentid;
	data['regfrom'] = entity.regfrom;
	data['regfromactivity'] = entity.regfromactivity;
	data['regtime'] = entity.regtime;
	data['groupid'] = entity.groupid;
	data['islock'] = entity.islock;
	data['wxunionid'] = entity.wxunionid;
	data['wxopenid'] = entity.wxopenid;
	data['appopenid'] = entity.appopenid;
	data['miniopenid'] = entity.miniopenid;
	data['aliuserid'] = entity.aliuserid;
	data['identity'] = entity.identity;
	data['shopid'] = entity.shopid;
	data['shopstatus'] = entity.shopstatus;
	data['firmid'] = entity.firmid;
	data['firmname'] = entity.firmname;
	data['starcount'] = entity.starcount;
	data['fancount'] = entity.fancount;
	data['cityid'] = entity.cityid;
	data['citytitle'] = entity.citytitle;
	data['viplevel'] = entity.viplevel;
	data['vipexpirytime'] = entity.vipexpirytime;
	data['svipexpirytime'] = entity.svipexpirytime;
	data['tvipexpirytime'] = entity.tvipexpirytime;
	data['vipopentype'] = entity.vipopentype;
	data['creditscore'] = entity.creditscore;
	data['setting'] = entity.setting;
	data['vipdays'] = entity.vipdays;
	data['usertag'] = entity.usertag;
	data['roleid'] = entity.roleid;
	data['oa_join_company_id'] = entity.oaJoinCompanyId;
	data['oa_avatar'] = entity.oaAvatar;
	data['buyericon'] = entity.buyericon;
	data['sellericon'] = entity.sellericon;
	data['oa_company_role'] = entity.oaCompanyRole;
	data['is_pa_test'] = entity.isPaTest;
	data['pay_pwd'] = entity.payPwd;
	data['pay_pwd_salt'] = entity.payPwdSalt;
	data['token'] = entity.token;
	return data;
}